class Status < ActiveRecord::Base
  has_many :issues

  # returns common priority names for autocompletion
  def self.names
    find( :all, :limit => 10, :order => 'taggings' ).map( &:name )
  end

  def inspect
    "Status:#{name}"
  end
  
  # print the name of the status, by default
  def to_s
    "#{name}"
  end
end
